In computing, PEEK is a BASIC programming language extension used for reading the contents of a memory cell at a specified address. The corresponding command to set the contents of a memory cell is POKE. ==Statement syntax==
The PEEK function and POKE command are usually invoked as follows, either in direct mode (entered and executed at the BASIC prompt) or in indirect mode (as part of a program):
The ''address'' and ''value'' parameters may contain complex expressions, as long as the evaluated expressions correspond to valid memory addresses or values, respectively. A valid ''address'' in this context is an address within the computer's address space, while a valid ''value'' is (typically) an unsigned value between zero and the maximum unsigned number that the minimum addressable unit (memory cell) may hold.